/*
 * @file main.cpp
 * @author zhangpeihao
 */

#include <stdlib.h>
#include <iostream>
#include <gflags/gflags.h>
//#include <glog/logging.h>

#ifdef __WIN32__
DEFINE_string(LogPath, "..\\..\\..\\logs\\Client", "The path to save log files.");
DEFINE_string(ObjectDefineFilePath, "..\\..\\chatServer\\", "The path of object define files.");
//DEFINE_string(ScriptFolderPath, "..\\..\\luaClient\\agentLuas", "The lua script folder path.");
DEFINE_string(ScriptFolderPath, "..\\..\\luaClient\\luas", "The lua script folder path.");
#endif
#ifdef __LINUX__
DEFINE_string(LogPath, "/tmp", "The path to save log files.");
DEFINE_string(ObjectDefineFilePath, "./", "The path of object define files.");
DEFINE_string(ScriptFolderPath, "./", "The lua script folder path.");
#endif
DEFINE_string(ChatServerAddress, "127.0.0.1:7657", "The server address.");
DEFINE_int32(Id, 1, "The ID of client.");
DEFINE_int32(SendBufferSize, 8196, "Send buffer size(bytes).");
DEFINE_int32(ReceiveBufferSize, 8196, "Receive buffer size(bytes).");
DEFINE_int32(KeepAliveInterval, 60, "Keepalive for TCP(seconds). Set 0 to disable keepalive.");

DEFINE_string(ClientKey, "123456789", "The key to auth client connections.");
DEFINE_string(AgentKey, "987654321", "The key to auth agent connections.");

int main(int argc, char **argv) 
{

  std::string version("0.0.1");
  google::SetVersionString(version);
  google::ParseCommandLineFlags(&argc, &argv, true);
//  google::InitGoogleLogging(NULL);


  std::cout << "ScriptFolderPath: " << FLAGS_ScriptFolderPath.c_str() << std::endl;
  std::cout << "test ok" << std::endl;
  getchar();

//  google::FlushLogFiles(3);
//  google::ShutdownGoogleLogging();
  google::ShutDownCommandLineFlags();

  return 0;
}

